package com.czk.utlls;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author:ChenZhangKun
 * @Date: 2021/8/24 15:33
 */
@Component
public class UserUtil {
    @Autowired
    private TokenUtil tokenUtil;
    private String getUserUrl = "https://api.weixin.qq.com/cgi-bin/user/get?access_token=ACCESS_TOKEN";

    public void getUsers() {
        getUserUrl = getUserUrl.replace("ACCESS_TOKEN", tokenUtil.getToken().getAccessToken());
        System.out.println(HttpUtil.get(getUserUrl));
    }
}
